package com.erp.system.mapper;

import com.erp.system.domain.Customer;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Entity com.erp.system.domain.Customer
 */
@Repository
public interface CustomerMapper {

    /**
     * 根据对象查询
     * @param customer
     * @return
     */
    List<Customer> queryAll(Customer customer);

    /**
     * 添加客户主数据
     * @param material
     */
    int insertCustomer(Customer material);

    /**
     * 修改客户主数据
     * @param customer
     */
    int updateCustomer(Customer customer);

    /**
     * 删除客户主数据
     * @param id
     */
    int deleteCustomerByIds(String[] ids);
}